package com.medical.medical.util;

import java.util.HashMap;
import java.util.Map;

public class ResultUtil {


    public static Map<String,Object> success(String message){
        Map<String,Object> resultMap = new HashMap<>();
        resultMap.put("flag","1");
        resultMap.put("message",message);
        return resultMap;
    }

    public static Map<String,Object> successNull(String message){
        Map<String,Object> resultMap = new HashMap<>();
        resultMap.put("flag","2");
        resultMap.put("message",message);
        return resultMap;
    }

    public static Map<String,Object> error(String message){
        Map<String,Object> resultMap = new HashMap<>();
        resultMap.put("flag","0");
        resultMap.put("message",message);
        return resultMap;
    }
}